package com.core.family.biz.yizhao.domain.po;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * @author honglei
 * @version 1.0
 * @time: 2023-7-13 9:59:33
 * @Description PO对象 一招订单表
 */
@Data
@TableName(value = "yz_order")
public class YzOrder implements Serializable {


        /*
        *  附件json
        */

        @TableField(value = "attachment")
        private String attachment;

        /*
        *
        */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        @TableField(value = "create_time")
        private Date createTime;

        /*
        *  关联id，隔开
        */

        @TableField(value = "family_id")
        private String familyId;


        @TableField(value = "price")
        private Long price;

        /*
        *
        */

        @TableField(value = "goods_type")
        private String goodsType;

        /*
        *
        */
        @TableField(value = "id")
        private Integer id;

        /*
        *  存储图片json
        */

        @TableField(value = "img_json")
        private String imgJson;

        /*
        *
        */

        @TableField(value = "input_json")
        private String inputJson;

        /*
        *  类别名
        */

        @TableField(value = "kind_name")
        private String kindName;

        /*
        *
        */

        @TableField(value = "make_type")
        private String makeType;

        /*
        *  备注
        */

        @TableField(value = "notes")
        private String notes;

        /*
        *  订单号
        */
        @NotNull(message = "订单号不能为空")
        @TableField(value = "order_no")
        private String orderNo;

        /*
        *  选中的接单报价id
        */
        @TableField(value = "order_price_id")
        private Integer orderPriceId;

        /*
        *  接单人姓名
        */

        @TableField(value = "order_take_name")
        private String orderTakeName;

        /*
        *  接单人电话
        */

        @TableField(value = "order_take_phone")
        private String orderTakePhone;

        /*
        *  接单人身份
        */

        @TableField(value = "order_take_rolename")
        private String orderTakeRolename;

        /*
        *
        */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        @TableField(value = "order_take_time")
        private Date orderTakeTime;

        /*
        *  接单人用户id
        */
        @TableField(value = "order_take_user_id")
        private Integer orderTakeUserId;


        /*
         *  发单人
         */
        @NotNull(message = "发单人 不能为空")
        @TableField(value = "order_user_name")
        private String orderUserName;

        /*
         *  发单人电话
         */
        @NotNull(message = "发单人电话 不能为空")
        @TableField(value = "order_user_phone")
        private String orderUserPhone;

        /*
         *  发单人用户id
         */
        @NotNull(message = "发单人用户id 不能为空")
        @TableField(value = "order_user_id")
        private Integer orderUserId;






        /*
        *  业主
        */

        @TableField(value = "ower_name")
        private String owerName;

        /*
        *  业主电话
        */

        @TableField(value = "ower_phone")
        private String owerPhone;

        /*
        *  业主用户id
        */
        @TableField(value = "ower_user_id")
        private Integer owerUserId;

        /*
        *  父id
        */
        @TableField(value = "parent_id")
        private Integer parentId;

        /*
        *  图片集合,分割
        */

        @TableField(value = "picture_array")
        private String pictureArray;

        /*
        *  产品图标
        */

        @TableField(value = "product_img")
        private String productImg;

        /*
        *  产品名称
        */

        @TableField(value = "product_name")
        private String productName;

        /*
        *  项目地址
        */

        @TableField(value = "project_address")
        private String projectAddress;

        /*
        *  项目维度
        */
        @TableField(value = "project_address_latitude")
        private Double projectAddressLatitude;

        /*
        *  项目经度
        */
        @TableField(value = "project_address_longitude")
        private Double projectAddressLongitude;

        /*
        *  项目区域，省市区
        */

        @TableField(value = "project_local")
        private String projectLocal;

        /*
        *  名词
        */

        @TableField(value = "project_name")
        private String projectName;

        /*
        *
        */
        @TableField(value = "publish_status")
        private Integer publishStatus;

        /*
        *
        */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        @TableField(value = "publish_time")
        private Date publishTime;

        /*
        *  报价人数，触发器实现
        */
        @TableField(value = "quote_cnt")
        private Integer quoteCnt;

        /*
        *  订单状态
        */

        @TableField(value = "status")
        private String status;

        /*
        *  状态码，同status
        */
        @TableField(value = "status_code")
        private Integer statusCode;

        /*
        *
        */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        @TableField(value = "time_limit_end")
        private Date timeLimitEnd;

        /*
        *
        */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        @TableField(value = "time_limit_start")
        private Date timeLimitStart;

        /*
        *  时间限制方式 各位为
        */

        @TableField(value = "time_limit_type")
        private String timeLimitType;

        /*
        *
        */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        @TableField(value = "update_time")
        private Date updateTime;


        @TableField(value = "view_cnt")
        private int ViewCnt;

}
